<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>子网列表</title>
	<meta name="decorator" content="default"/>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/scene/sceneNetwork/">网络列表</a></li>
		<li class="active"><a href="${ctx}/scene/sceneNetwork/subnetManage?id=${sceneNetwork.id}">子网列表</a></li>
	</ul>

	<input id="btnSubmit" class="btn btn-primary" type="button" value="创建子网" onclick="window.location.href='${ctx}/scene/sceneNetwork/createSubnet?id=${sceneNetwork.id}'"/>
	<br><br>
		<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>名称</th>
				<th>cidr</th>
				<th>IP版本</th>

				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="sceneSubnet">
			<tr>
				<td>
				${sceneSubnet.subnetName}
				</td>
				<td>
					${sceneSubnet.cidr}
				</td>
				<td>
					${sceneSubnet.ipVersion}
				</td>
				<td>
					<a href="${ctx}/scene/sceneNetwork/deleteSubnet?subnetId=${sceneSubnet.id}&networkId=${sceneNetwork.id}" onclick="return confirmx('确认要删除该子网吗？', this.href)">删除子网</a>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>